// pages/Community/index.js
Page({
    data: {
        active: 1,
    //通过list配合onChange函数实现页面跳转 
    list:[   
        {"url": "../index/index"},
        {"url": "../Community/index"},
        {"url": "../login/login"},
    ]
    },

     //   通知栏点击
     notice_chick(event){
        wx.navigateTo({
            url: '../out/out',  //跳转页面书写在out下wxml中
        });
    },
    // 设置当前页面属性为选择   
    onChange(event) {
        this.setData({ active: event.detail });
        wx.navigateTo({
            url: this.data.list[event.detail].url ,
          });
    },
})